#include <iostream>

using namespace std;

int main(int argc, char const *argv[])
{   
    // int capaciyt = 3;
    int temp = 0;

    int arr[3] = {0};

    for (int i = 0; i < 3; i++)
    {
        cout << " 请输入第" << i+1 <<"个数"<<endl;
        cin >> arr[i];
    }
    
    for (int i = 0; i < 3; i++)
    {
        cout << arr[i] << "  ";
    }
    
    for (int i = 0; i < 3; i++)
    {
        for (int j = i + 1; j < 3; j++)
        {
            if (a[i] < a[j])
            {
                int temp = a[i];
                a[i] = a[j];
                a[j] = temp;
            }
        }
    }
cout <<"三个数从大到小排列为："<< endl;

for (int i = 0; i < 3; i++)
{
    cout << arr[i] << " ";
}
    return 0;
}
